﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace SacNetUG.Models
{
    [MetadataType(typeof (SponsorMd))]
    public partial class Sponsor
    {
        #region Nested type: SponsorMd

        internal class SponsorMd
        {
            [Required(ErrorMessage = "Required")]
            public string Name { get; set; }

            [Required(ErrorMessage = "Required")]
            public string Url { get; set; }

            public string LogoUrl { get; set; }

            public string BannerUrl { get; set; }

            [Required(ErrorMessage = "Required"), DisplayName("Sponsor Category")]
            [UIHint("SponsorCategory")]
            public int SponsorCategoryId { get; set; }

            [Required(ErrorMessage = "Required"), DisplayName("Sort Order")]
            public int SortOrder { get; set; }
        }

        #endregion
    }
}